package apiDay03;

public class Demo04 {
    public static void main(String[] args) {

        int n=-1;
        int m=n>>>1;
        int k=n>>>2;
        int g=n>>>8;
        int b1=(n>>>24)&0xff;
        int b2=(n>>>16)&0xff;
        int b3=(n>>>8)&0xff;
        int b4=n&0xff;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));
        System.out.println(Integer.toBinaryString(g));
        System.out.println(Integer.toBinaryString(b1));
        System.out.println(Integer.toBinaryString(b2));
        System.out.println(Integer.toBinaryString(b3));
        System.out.println(Integer.toBinaryString(b4));









        /*
        int n= 0x179d5d9e;
        int m=0xff;
        int k=n&m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));

         */
    }
}
